Using docs/source/reference/modding/settings/*.rst and files/settings-default.cfg files content.
To make sure loaded settings have valid values doing the check once per loading. And to make access more efficient.