optimize compiled code