Run VACUUM as the first thing after creating a cache file.