Implementation of file cache