Efficiently cancel jobs