If you reboot the system, you have to replay the node again. Because the shared_memory.bin file is located on the ram at /dev/shm and it will be removed on reboot
It's possible to make a script that moves the file between shm and regular storage when you start and stop the node.