`mod` can be placed directly in `toStringRadixConvert`, which should help with locality.

As for `buffer`, arguably, you could just have it returned by `toStringRadixConvert`, and have your code do `return toStringRadixConvert!(S.sizeof * 3, 10);`: