Fix checking for external share in encryption