Yes, but instead of storing it to RAM, you could save it to the filesystem (disk). If you did so, it initially saves the data to RAM, and then flushes to disk every 30 seconds.
The 30 seconds is set by default, although it can be changed, 1 minute, 5 minutes etc.
Have you searched the flow catalogue?
node-red-contrib-linux-memory
node-red-contrib-os
node-red-contrib-device-stats
just to name a couple.