Persist internal_metadata