Improve Encoding/Decoding
Make encoding/decoding faster by using MagicHash