Filter 16-bit writes (note this slows down the code *a lot*)