hack to speed up deriv_Sb non degenerate adapted for MPI