There is a problem, when you use classname as key of array, that when you change one file, it will invalidate full cache, not only the one file. This should be not much performance loss, but still when it goes to 100+ files, it will slow down application.