Speed up initial file loading: match against sets before adding, add relationship models by bulk.
Speed up initial file loading: match against sets before adding, add relationship models by bulk.