Adding fix to reduce memory consumption of em script by loading all
alignments into memory.