Patch-Based Optimization And Curriculum Learning: Improving Deep Learning Efficiency And Model Security