How to compress an hexadecimal number into a short string?

The memory usage estimator looks at global and static variables. By putting it into loop() you have made it a local variable.

It still uses the same amount of space except it isn't reported in that line.