Optimize Speed and Switch Api Site automatically