optimizing Redis roundtrips