Only evaluate classes_to_skip once