Perhaps we could write code to...
Perhaps we could write code to optimize code, then run that code through the code optimizer?