Rebuild or replace?

I’d just get a good running Magnum 5.2/5.9 they make gross hp of around 300 hp. And put the rest to rear end brakes etc..