Small microoptimization in do_work().