Add a class UnpersistedEventContext to allow for the batching up of storing state groups.