fix shamir speed up init buffer