perf(Change Detector): Track the range & group on changes only

There is no need to track the range & group for all the records but only
for the records that have changed.