Eliminate malloc call in request handler