When I used to have 32 students in a class, I prided myself in remembering student names by the second day and by the third day, I even remember their last names too. It always surprised them when I can call out their names; it sure helps in student-teacher rapport.
Spending time to prepare for a class certainly takes a lot of pressure when we start to teach and also makes us look more professional, especially when we are asked questions that have relevance but may not always be covered in the day-to-day topics.