Optimize transform to not use readQueue