How to optimize at intermediate surfaces