Enhancing Security And Performance Of Deep Neural Networks