Avoid some redundant computations when generating compiled entity functors