Take CA-58 out of Bakersfield to US-395. Take that south to I-15 toward San Bernardino. At the split, take I-215 to CA-210. Take that east to I-10.
That's considerably faster than taking I-40 to US-93. Bakersfield to Phoenix can be done in about 8 hours.
If you want to avoid the Central Valley, you can take I-5 out of Sacto and cut across to CA-99 on CA-46.