in reply to methods of recovering from ram issues
Maybe you should switch to some external data storage like Redis