Use a Redis database instead of storing keys in a variable