use array(keypos) to trace all key positions (start and end) in the message struct,
and del key_start/key_end.