Secure multi-party computation for cloud-based control