Reduce allocations further by managing a closure manually