Yes, the query has the 'scope' value formatted into it.  We could use the database to cache it, but I doubt it will make any difference; these are not high frequency queries.