Avoid duplicate foreign_key values when do eager loading (preloading)