Add 'allowedIndexes' option when saving data