better handling of null filters when caching them