HasParent API for SchemaObject was performance bottleneck