The damage animation can be cancelled by firing while getting hit. Should save significant amounts of time: This incredibly short section saves about 70-80 frames by itself just from 3 cancels.
20 frames saved at about frame 19000, probably also applies to other segments, also probably not extremely optimized.