You can use in memory file system for tmp file (/tmp directory is writable) but it disappear with the instance.
Things are going to be improved on the development team, I can't say what and I don't have timeline, but it will be easier for the developer to save state elsewhere.