Just discovered Named Query Caching while trying to do the same thing manually. Whoever thought of that is awesome, and I owe them a beer next time I'm in Folsom.