Optimizing and Protecting Application Data