Rewiring connection checking and caching