Payload splitBy "\n" loads all the content in memory and throws heap memory issue.
It's solved by passing the stream to Java class which process the stream adn writes it to /tmp dir without blowing up the heap.
Inspiration took from Mule File repeatable streaming strategy.