Minor compiler performance improvements to the compilation of entity clauses