Temporarily disable content-based caching, speed up Pattern.is_connected() by extracting interface indices outside of loop.