Maybe Masterson is done, but I read a few reports of teams that would be interested in him if he didn't cost salary. Victorino is a great platoon option, with speed and defense that could be very helpful to a contending team. They're not going to bring in top prospects, but maybe some minor leaguers with low, but possible MLB ceilings.
Find me a better offensive player on the trade market, and we can change the course of this discussion, but until then, he certainly has value to a team.
If they get a top prospect for Koji, they'll eat money. Look at Moncada -- they have no problem spending money to add minor league talent. The Red Sox are lucky that the Phillies have been shopping Papelbon so long... it makes Koji cheap by comparison.
Sounds like a plan to me.