Optimized White-Box Tracing for Efficient Side-Channel Attacks