Buffer writes to statsite to reduce syscalls