shave 2 bytes by hoisting `var key` up one closure