Rewriting parallel calls to retrieve checkpoints