DNS queries: for some reason Resolver doesn't cache responses, although I can probably add that pretty quickly (I don't want to introduce side effects to proxy authentication code).
SQL queries: same re: side effects - we can enable query cache though, which is intended for exactly this sort of stuff.