Use static allocation for buffer