speed up sameAsReferenceImplementation (#2167)
speed up sameAsReferenceImplementation (#2167)

This takes ~15 minutes right now
hail-is/hail,hail-is/hail,danking/hail,hail-is/hail,danking/hail,danking/hail,danking/hail,danking/hail,danking/hail,danking/hail,cseed/hail,cseed/hail,cseed/hail,hail-is/hail,cseed/hail,hail-is/hail,cseed/hail,cseed/hail,cseed/hail,cseed/hail,hail-is/hail,danking/hail,hail-is/hail,hail-is/hail