Implemented auto removing files from cache