Apply the same technique from #104 and #130 to the C library. The low level lib provides a function to send byte arrays instead of single bytes. Where possible loops and multiple single byte send calls were replaced with this function.