How to compress an hexadecimal number into a short string?

Much simpler to put the tag array at global scope, or qualify it static, so that it doesn't get reinitialised each time loop () executes.