An event store system with milestone optimization