construct bytearrays at initialization for better speed on RPi