Privacy And Optimization For Distributed Machine Learning And Storage