How we can remove duplicate with runWithRetries(String key, int redirections, boolean tryRandomNode, boolean asking)?

key is used for just calculating slot, so it could be possible if we changed runWithRetries() to accept only slot number, not key.
What do you think about?