added in memory cache so files are just for persistent cache