Would the following be a simpler implementation of this block?
```ruby
              child_ids_per_record = records.map(&details[:ids_cache_name].to_sym) }
              child_records = details[:association_class].fetch_multi(*child_ids_per_record.flatten)
              id_to_child_record = child_records.index_by(&:id)
              records.zip(child_ids_per_record).each_with_index do |record, child_ids|
                record.send(details[:prepopulate_method_name], child_ids.map{ |id| id_to_child_record[id] })
              end
```