Refactor, clear key,value

Signed-off-by: Bebe Peng <b.peng@awesometown.local>