Improve performance of conversion between grammage and distance
Profiling done by @JAlameddine showed that a significant fraction of time is spent for conversions from grammage to distance. At least for particular geometries ("flat Earth", "curved Earth") we could consider tabulating.