Improved caching layer in case of a redis failure