Simplified code for EditDistanceEDA with Redis resource