[aligner] Enable the user to reuse the cache returned by alignall_iterative() (closes #116938) [applied]