better memory management - the only info keept till the end are all the validation reports (in the variable all_query_outputs)