Only force cache_classes when ENV['PERF_CHECK'] is defined