Transform the first chunk in a stream