Optimize connection to servers