Replaced `translate()` by lookup array (3x faster).