Use identity to reduce number of calls to log functions in tracking calculations
Redoing !65555 (closed) but adapting to @christos's changes (!65969 (merged) etc).
I don't see any changes in the unit tests, fingers crossed for the CI.
Redoing !65555 (closed) but adapting to @christos's changes (!65969 (merged) etc).
I don't see any changes in the unit tests, fingers crossed for the CI.