Performance fix for large block-diagonal quadratic objective