lots of info on the forum (search persistent context )
e.g...
If you want more control, there are contrib nodes that can read/write to JSON in a very similar fasion to persistent storage e.g...