astropy.wcs running slow: attempting speedup