Optimized more bidirectional STP lookups.