Micro-optimise some hot code

that was pointed to me by a profile generated with Devel::NYTProf