Prevent DB lookups with local cache of filters

Noticed index pages containing many images performing a silly number of queries, turns out this was (partially) the cause.