at the moment only by restarting the sing-box is possible to write in memory data to disk check out [how to safely flush shadowsocks data to disk when SSM-API enabled #3525 ](https://github.com/SagerNet/sing-box/issues/3525)