SYNC-323 - Improve performance of "lastRecord" and "previousRecord"