DYNAMIC MEMORY MANAGEMENT FOR KEY-VALUE STORE