Performance Optimization and Instability Study in Ring Cavity Quantum Cascade Lasers