It was actually pretty easy to implement using `g_mkstemp()` as done in #2769. The directory for instantly saved files can then be configured and if not configured, the default temporary directory is used, as before.
I added a note in the plugin's preferences that the user is responsible for cleaning up the created files.
github-comments@lists.geany.org