Safer to use AtomicFileWriter.