currently not but it is planned to be configurable (at the very minimum, cacheable).
Your method BTW works only if all the table is shown, doesn't take into account a possible condition passed to the grid (such as db.table.user_id == auth.user_id) or keyword queries.
I'll start working on that as soon as possible, shouldn't be hard.....
Talking about "extensibility", what you'd like to pass as a parameter ?
I'm thinking to allow:
- a callable (to which query and keywords are passed) --> you can pass the result of your custom query in this case, just watch out for the shortcomings explained earlier
- an integer (which will trigger the "cache this count" for n seconds)
Would that be enough?