def lut_write_to_cache_no_sql_mode(lut_key)
      lut         = {}
      batch_count = 0

      block = lut_proc(lut_key)
      block.call(lut)

      keys = lut.keys

      while
        key_block = keys.slice!(0, lut_options(lut_key)[:batch_size])
        break if key_block.empty?

        lut_block = {}
        key_block.each{|key| lut_block[key] = lut[key]}

        batch_count = self.lut_write_cache_item(lut_key, batch_count, lut_block)
        batch_count += 1
      end

      batch_count
    end
def lut_write_to_cache_no_sql_mode(lut_key)
      lut         = {}
      batch_count = 0

      block = lut_proc(lut_key)
      block.call(lut)

      keys = lut.keys

      while
        key_block = keys.slice!(0, lut_options(lut_key)[:batch_size])
        break if key_block.empty?

        lut_block = {}
        key_block.each{|key| lut_block[key] = lut[key]}

        batch_count = self.lut_write_cache_item(lut_key, batch_count, lut_block)
        batch_count += 1
      end

      batch_count
    end
HACK: somehow long method