Sped up the pipeline by having it only read from the database once per item processed