loadOrComputeCheckpoint function

Load or compute a checkpoint