Moved redis caching to controller and made it assimilate smaller ranges