How would you architect serverless functions for better scalability and reduced latency at Sharp HealthCare?