Memory related changes - release the data after using it
Changes for the threshold and maximum number of peers for fiat shamir
verification