ref-filter: use separate cache for contains_tag_algo