Micro optimize wrap

wrap is crazy hot. This does some micro optimizations of it.