Maybe `File.delete(path) if File.exist?(path)` to avoid an exception in the case of another thread doing a cache gc at the same time.