Replace the old loop "while (list(, $alias_va) = each($val))" by the new faster loop "foreach"