Ghee is devoid of any moisture when cooked and stored correctly. Thus, it is shelf stable for months. To preserve it further, refrigerate it.