Newbie 318 piston question

It would be a good piston to use in a 318 and then put a set of 340/360 heads on it...

I ran a 318 with TRW forged 10.5 pistons and it would detonate and overheat within 20 minutes because the compression was too high with 318 heads... I found a set of 360 heads and swapped them on and ended up with 9.2 compression and no detonation or overheat problems any more....