Optimized byte array to hex conversions