Avoid unnecessary extra dict lookup.
Avoid unnecessary extra dict lookup.

Summary:
Instead of looking up inputs for every output, we can
just iterate over all pairs.

Test Plan: CI

Reviewed By: jtorkkola

fbshipit-source-id: 97ea2fd

SeleniumHQ/buck,clonetwin26/buck,shs96c/buck,Addepar/buck,JoelMarcey/buck,SeleniumHQ/buck,brettwooldridge/buck,romanoid/buck,romanoid/buck,brettwooldridge/buck,brettwooldridge/buck,shs96c/buck,SeleniumHQ/buck,JoelMarcey/buck,JoelMarcey/buck,romanoid/buck,nguyentruongtho/buck,JoelMarcey/buck,romanoid/buck,nguyentruongtho/buck,shs96c/buck,zpao/buck,clonetwin26/buck,SeleniumHQ/buck,clonetwin26/buck,kageiit/buck,brettwooldridge/buck,romanoid/buck,JoelMarcey/buck,rmaz/buck,shs96c/buck,clonetwin26/buck,kageiit/buck,Addepar/buck,Addepar/buck,nguyentruongtho/buck,brettwooldridge/buck,romanoid/buck,shs96c/buck,facebook/buck,shs96c/buck,clonetwin26/buck,brettwooldridge/buck,facebook/buck,nguyentruongtho/buck,shs96c/buck,Addepar/buck,JoelMarcey/buck,romanoid/buck,JoelMarcey/buck,facebook/buck,shs96c/buck,LegNeato/buck,rmaz/buck,shs96c/buck,romanoid/buck,romanoid/buck,facebook/buck,rmaz/buck,LegNeato/buck,kageiit/buck,LegNeato/buck,zpao/buck,SeleniumHQ/buck,rmaz/buck,LegNeato/buck,Addepar/buck,Addepar/buck,nguyentruongtho/buck,clonetwin26/buck,zpao/buck,shs96c/buck,shs96c/buck,facebook/buck,facebook/buck,kageiit/buck,brettwooldridge/buck,zpao/buck,rmaz/buck,clonetwin26/buck,facebook/buck,SeleniumHQ/buck,brettwooldridge/buck,JoelMarcey/buck,JoelMarcey/buck,kageiit/buck,zpao/buck,rmaz/buck,kageiit/buck,rmaz/buck,JoelMarcey/buck,Addepar/buck,rmaz/buck,zpao/buck,LegNeato/buck,Addepar/buck,SeleniumHQ/buck,JoelMarcey/buck,rmaz/buck,clonetwin26/buck,romanoid/buck,rmaz/buck,clonetwin26/buck,romanoid/buck,brettwooldridge/buck,zpao/buck,brettwooldridge/buck,Addepar/buck,rmaz/buck,romanoid/buck,shs96c/buck,nguyentruongtho/buck,clonetwin26/buck,LegNeato/buck,romanoid/buck,LegNeato/buck,brettwooldridge/buck,shs96c/buck,LegNeato/buck,kageiit/buck,SeleniumHQ/buck,brettwooldridge/buck,Addepar/buck,Addepar/buck,SeleniumHQ/buck,SeleniumHQ/buck,LegNeato/buck,SeleniumHQ/buck,LegNeato/buck,SeleniumHQ/buck,Addepar/buck,nguyentruongtho/buck,LegNeato/buck,JoelMarcey/buck,brettwooldridge/buck,LegNeato/buck,clonetwin26/buck,LegNeato/buck,rmaz/buck,SeleniumHQ/buck,clonetwin26/buck,rmaz/buck,JoelMarcey/buck,Addepar/buck,clonetwin26/buck