Learning to Prevent Leakage: Privacy-Preserving Inference in the Mobile Cloud