Changed cacheify to optionally take a function that returns a leveldb api compatible instance instead of the instance itself, also added a filter function. Changed the api significantly.