Securing custom chips for large-scale cloud deployments