Simple cache solution for getting student's hidden categories from the database. This again reduces database queries made when constructing CourseSummary. This solution should be replaced by a solution using the QuerySet.prefetch_related which is not yet available in Django 1.3.