Stack walls. Basically, you can build out and then back with triangles in a way that you have foundations super close, but not touching. Then when you put walls and doorways on, you have double the walls there in the same area and number of foundations. You probably only need one layer of this near your perimeter, and note that this approach is weak to rockets if raiders choose to go in by walls instead of doors, but good against C4.