Performance improvements in students.views.solutions.
Also removed unneeded .all() in api_students.