optimize request handling