Foundation Models: Secure On-Device AI Text Generation