first pass at caching the cat html
makes sure it's clear where what the vars are for
increases search speed almost 500% if the right html block is used :\