Added cache trait. Updated cache filters into single file.