Use timestamp and min number when setting new key for a local
insert/update