Remove casting of uint8_t buffer to uint16_t to avoid alignment problems. Performance...