Optimise some instructions