Save cache file in temp dir.