persist keys and chunks