def lut_read_without_cache_sql_mode(lut_key)
      lut   = {}
      block = lut_proc(lut_key)

      self.where(lut_options(lut_key)[:where]).find_in_batches(:batch_size => lut_options(lut_key)[:batch_size]) do |items| #FIXME not DRY here
        items.each do |item|
          if block
            block.call(lut, item)
          else
            lut[item.send(lut_key)] = item.id
          end
        end
      end

      return lut
    end
def lut_read_without_cache_sql_mode(lut_key)
      lut   = {}
      block = lut_proc(lut_key)

      self.where(lut_options(lut_key)[:where]).find_in_batches(:batch_size => lut_options(lut_key)[:batch_size]) do |items| #FIXME not DRY here
        items.each do |item|
          if block
            block.call(lut, item)
          else
            lut[item.send(lut_key)] = item.id
          end
        end
      end

      return lut
    end
CHECK: somehow long method