greatly speed up the computation of material tables