Memory adapter for undo