Convert DataCache filter function into an object

Requires: https://github.com/genialis/genesis/pull/387