Text this: Optimizing 5G network performance with dynamic resource allocation, robust encryption and Quality of Service (QoS) enhancement