I'd prefer using ioutil.TempDir and then writing the data to a file in that dir via v.nonAtomicSave to have a single point where data is being written to disk.