Performance and stability optimization