Integrating Self-Monitoring Devices Into the Untrusted Cloud for Healthcare