Optimized connections manager.