Encode all first level values in data