make valgrind happy & only use two static buffers