Use hmget() to read ids in chunks.

@itamarhaber -- what do you think of something like this?