   [^ElephantDB$Iface service database domain-name error-suffix key-seq]
   (try (let [^Domain dom (db/domain-get database domain-name)
              serializer  (.serializer dom)
-             key-seq     (map #(.serialize serializer %) key-seq)]
+             key-seq     (map (fn [x]
+                                (ByteBuffer/wrap
+                                 (.serialize serializer x)))
+                              key-seq)] 
          (.directKryoMultiGet service domain-name key-seq))
        (catch TException e
          (log/error e "Thrift exception on " error-suffix)) ;; try next host

                                            suffix
                                            key-seq)
                      (with-kv-connection hostname port remote-service
                        (let [^Domain dom (db/domain-get database domain-name)
                              serializer  (.serializer dom)
                              key-seq     (map #(.serialize serializer %) key-seq)]
                          (try-kryo-multi-get remote-service
                                              database
                                              domain-name
                                              suffix
                                              key-seq))))]
      (map (fn [m v] (assoc m :value v))
           indexed-keys
           vals))))

        (multi-get get-fn
                   database
                   domain-name
                   (map (fn [^ByteBuffer x] (.array x))
                        key-seq))))

    (multiGetInt [this domain-name key-seq]
