dwhois.cache: only coerce to bson.binary when necessary