Similar strategy as for c52191d in which we stream the results from the database into an automatically growing array instead of using a hash.
c52191d