Use batch inversion in G precomputation