At 170k it might be a good idea to just rebore the engine.
That would add machining costs and $150 for new pistons.
A valve job is definitely a good idea.
New timing components would be smart.
Maybe new HLA's as well.
When you really look at it. Buying a low mileage 3L is the same price if not cheaper then rebuilding a tired 2.5L engine.