buffer: restore swap16/32/64 and multi-byte indexOf throughput (#39616)