Avoid recomputation of `a` in fermat, we have it already.

This was so bad.