Conditionally upgrad record; add stats to record for core/kv.