[Dashboard]: Improve prefetching of available classes
MR!595 introduced prefetching of the availableClasses call, which should help with system load during registration periods. However, the conditions of the prefetch execute should be improved to filter out more unnecessary calls. A time difference check between department's registration period start and current time should be added.