To produce food, plants rely on three main ingredients, sun energy, water, and carbon dioxide, the cost of which is zero. To address the food and energy security concerns, two mysteries are resolved for the first time: i)—Photosynthetic efficiency is known to be very low, the scientific full accounting for all the losses is lacking; ii)—Fanning is known to be profitable, yet accounting for the zero cost of solar energy is not understood. This inventor resolved them by the derivation of a simple mathematical law, AgriPAL, comprising explicitly, a new solar gain factor >;200× which offset the low efficiency of ˜0.005. In the absence of the sun, the newly found solar gain goes to 1. Since SanSSoil enables harnessing the third dimension, the sky is the limit. Water saving of >;100 is realized through the controlled enclosed environment.