More optimized children searching in class hierarchy