Trustworthy and Resource-Aware AI: Balancing Security, Latency, and Sustainability