IDEX-1084: preferences storage reworked