Optimise hflip.