Idiomatic storage for intermediate calculations

You can create a zero-length array for data2, which would indicate that it is not initialized, can’t you?

Or split data and data2 into two data structures?