Implement transform optimization.