Improved performance of joinBlocks.