Use InMemoryCheckpointRepository in samples.