Use endomorphism in precomputations
Merge branch 'endo-precomp'