continuous improvement using redis to speed up finding edge cases