You may setup a tiny tmpfs to hold the log file in question.
The only drawback I see is that the logfile will be lost after a reboot or after a re-mount. Choose carfully what files you can accept to loose. Ephemeral data.
I do it a lot for different files which lack interest after having ‘aged’. Especially on a RPi, but also on other computers using SSD storage.