We don't speed up the checkout per se, but we make sure the checkout is for the correct commit, which then eliminates the need for the `reset --hard` (which is as expensive as a checkout).