Optimizing Neural Network Performance