Refactored to parallelStream where I found it necessary