Small optimization in postgen.