Removed copying of buffer for every thread