Closure optimalizations