Changing the state of the stream without a terminal operation between the two states produces indeterminate stream state. https://stackoverflow.com/questions/35742640/calling-sequential-on-parallel-stream-makes-all-previous-operations-sequential/35744490#35744490