Improved response stream handling