Optimized headers and connection handlers