Don't create unnecessary closure

Found using the [heap profiler](https://developer.chrome.com/devtools/docs/heap-profiling)