Optimizing BGP routesync operation