Sarah, this could be one of the best finds I've seen in a long time! Thanks for sharing.

More importantly, Thanks to John for writing it. One of my custom post types is doing 52 queries on a view. Even if the data is cached, that's a lot.

If you'll excuse me, I have some work to do.