It's actually quite nasty how stacking cubes works, the most efficient way is to alternate white and colored cubes. Someone add this to normal portal mechanics please!
It makes me really happy to see people experimenting with the mechanics! I wanted to have a puzzle using this I just didn’t get around to it. Thanks for playing!