Minor optimization to the compiler predicate that record defined entity predicates