Enhancing All-to-X Backdoor Attacks with Optimized Target Class Mapping