support new kv serialization. keylength + key + value length + value