Speed up for large alignments. (tests pass locally, but who knows)