Improved speed/fixed valgrind by zeroing out all pad bytes before serializing