init cache stuff in filter ctor