Improve performance of compilation of directives passed to the entity creation built-in predicates