Email Record: Optimization for machine learning