mapper: Zero out buffers before writing objects