Avoid doing the extra mask check in Pregel.