my game starts to lag alot

Hey guys. I am making a 2d physics platformer with box2d in c++ opengl. My level/world is pretty big i would say and when i finally loaded my whole level today after days and days of planning, i noticed that it started lagging. At first I thought it was tile grounds but it wasnt. So I researched in the forum and read that you cant have alot of overlapping bodies going on because of cpu usage. So this is where my lag comes in when I have boxes and crates stacked on top of each other throughout the level.

Is there a way to go around this problem?
Is there a solution for this other than reducing the boxes on my level? Or is this the only way.
Any suggestions?

I dont want to reduce it but if there is no other way than I guess I have no choice.
When the stacked boxes are not in view (or within a certain threshold around the camera's view), you can disable them, and enable them when they're in view.

Original thread: https://box2d.org/forum/viewtopic.php?t=8507