Table Stats improvement: Only two loops through the data!