Added preprocessor if to check if SHAMIR_TRICK is enabled for reinit