Optimizing Data Processing Through Verified Lifting