Switched to using bytes.Buffer instead of []byte for storage