The disclosure provides a method for preparing a shelf-stable starch based food product. The method includes introducing a quantity of a starch based ingredient and other ingredients including water, as required by a recipe, in a container. The method further includes sealing the container with a volume of one or more gases present therein such that the volume of one or more gases is based on the quantity of the ingredients. The method also includes processing the container, at a first temperature and a first pressure, for substantially cooking the ingredients, and further processing the container, at a second temperature and a second pressure, for substantially sterilizing the contents, including the ingredients and gases, inside the container.