Fix: convert DataCache filter function into an object