Wouldn't it be good to store queries in memcached?
I second that. https://bugzilla.wikimedia.org/show_bug.cgi?id=71528