Modified code to rely on CCN redis instead of storing CCN data on server