Optimizes ++ in DistMaps slightly.