Standardize how temporary files are written.