Improve performance of reading HTTP request headers