Improve performance of compilation of predicate calls