The shorter the crank, the less knee flexion you'll have at the top of the pedal stroke. That'll be true both in and out of the saddle.
I'll have to pay closer attention next time I'm climbing, because I would've said the knee actually flexes more when I'm in the saddle than out - when I'm standing to climb (or accelerate), the knee is closer to being 100% extended at the bottom of the pedal stroke, so I would think the opposite knee would be less flexed/more extended as well. Not sure if that's actually true though, since I (and I think most people) tend to shift my weight from side to side when I'm standing. So maybe there's not only more flexion, but some torque as well, which might could be exacerbated by increased flexion from cranks that are too long.
I need 165s because my kneecap tracking problems become an issue when my knees flex too much at the top of the pedal stroke.
Standard for most frame sizes is 170 - how long are your current cranks?
If I were you I'd run it by your PT if you're still in contact, and/or the PTs on this board - specifically where the pain or stiffness is that you're trying to address, where in the pedal stroke it happens, and whether it's only when you're out of the saddle, or just that it's worse then.
Speed comes from what you put behind you. - Judi Ketteler