Real-Time Cybersecurity Integration in PLCS and Iot Gateways: A Performance-Conscious Approach to Encryption, Authentication, and Intrusion Detection | Synapse