Iterate over the key/value arrays once, using GArray to store the text chunks after validating the keys.