store gems in redis as json-serialized 3-tuples rather than strings