The Role of AI Detection in Optimizing Search Engine Performance