dem_adjust: Speed up by reading geoid in memory, other minor