Optimize execution code