Performance optimizations

Was running into gc bottlenecks at 1mil requests
Performance optimizations