Minor refactor of RamPersistence