How to increase performance in the View Port?
If your cubes have more than 8 verts then I suggest using a decimate modifier. But not applying it. It will reduce the polycount and you can just undo it for a final render by deleting the modifier.