ENH: assembleBlocksToBetas directly to save memory