add memory versions of session cache save/restore