Restore check for existing cache file