use preShare hook only to check if all pub keys are available and the postShare hook to finaly update the shareKeys if the file was shared successfully