refactor caching system to a directory based one. No long filenames anymore