Download Optimization In Function Spaces: With Stability Considerations In Orlicz Spaces