small optimization in hlcl