[DROOLS-238] (Trait) hierarchy indexing and lookup is dramatically slower than needed