The end goal is to loop with a given X uint64 and for each loop var concatenate it with bytes, in order to construct known key. For instance key_1, …, key_24, … So i need that “24” in bytes to concat with “key_”. And I’m doing in TEAL.
I see, if there is not a very strong reason to make it human readable i’d favor just using the bytes of the int.
In other words, for the integer idx, Suffix(idx, Int(6)) for up to max uint16 unique keys. This would be much more efficient than using ascii and would still provide the unique keys. Any client would have to know that you’re just appending the uint16 bytes but seems fine unless you have a very strong reason not to