A Shared Memory Approach for Function Chaining in Serverless Platforms