Put data array in SerializedSampleSet into heap instead stack