Initialization of out- and inputstream of KVStore