Trying to speed up sql queries on landing page before caching