get_bridge minor optimization