optimize file cache