pycore: store local values for last record.