Improve speed of running snapshot cancelation

Closes #5242