Use PAD_SIZE for buffer max size