Use redis to store keys - should resolve issue with keys not being stored when saved in files on Heroku