Add all set(int key, *, optimizeLength); in Msg.