Replacing internal HTTP requests with direct access