Enhancing The Performance And Security Of Networked Control Systems Using Identification-Integrated Model-Based Control