Emit old sharing hooks
Port files_encryption to Share API 2