How to Leverage Serverless to Optimize for Cost and Performance?