Add cache statements to a couple queries.