There is absolutely no need to have super hi q clay/water in a cave to build a wall around it. Just a 20-30q spot is already worth it (cause u anyway should block the cave from inside). The difference is in few bricks and they are going in huge piles from said spot.
Or an underground lake with fish near cave exit.
Or simple a q10 water supply if there is no river near the cave exit on the surface.