PERF: allow a cache_readonly to be 'set' if allow_settings is passed on the decoration

      useful when specifiying an index that is **known** to be unique (e.g. in the case
      of a default range index)