Small performance improvement when compiling entity clause heads