Efficiently tracking a gauge value