Intermediate check-in:  trying to optimize # of queries per API request, given the somewhat complicated data model