Add caching and clean up align-spacers-mp.py