Optimize a few expressions.