Temporary File Import/Export for GUI version of G'MIC

I would like to be able to generate a temporary file after preview is finished, and then the temporary file is deleted on OK on the GUI version. The reason for this is that there are effects where it would be faster if one didn’t need to start over on generation of it, and all that is left to do is value manipulation.