Added caching for public-facing queries.