Clean and prepare both reference and evaluation samples during validation