Removed enableCache and added cache setup in constructor