This outlines creating the handler outside the function context to allow the client to be reused between invocations.