No Loss, No Gain: Gated Refinement and Adaptive Compression for Prompt Optimization