Minor CPU optimization