backports change made to how files are loaded so that files aren't loaded twice in non-production environments that cache their classes (staging, qa)