Convert all data to array after recursion

Hey, sorry for the delay. I can explore a new solution that writes csv files to disk, then merges them and uploads them as 1 file at the end. Do you still need this or you managed to solve it yourself?