are you leveraging this code in the SecureShareLib? Looks like most of it is worth reusing there