Avoid iterate all peer info and conn list when building sync request. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>