Disable profiling if config.cache_classes = false