Keep last state of every entity during recorder purging will be a nice solution to the persistence problem.