Move cache classes into a subdirectory.