How to prevent large Magma Cubes from spawning?

I want to prevent Magma Cubes from spawning in my Zombie Pigman gold farm. The largest Magma Cubes are slowly killing my Iron Golems = big problem.

I'm considering lowering the roof, making the cage just 2 blocks tall. Will this be suficient to prevent the largest Magma Cubes from spawning? Since this will also prevent Ghasts from spawning (right?), I'm wondering if there are any better ways to do this?

EDIT: I just realized that if I lower the roof to 2 height, there's no room for Iron Golems in the cage :\


Make the cage smaller in width. No other way, I think.