Use global values for w_prime and source_values to avoid passing large arrays.