Fix validate_parameters_match! call in cached path