Currently, the function is being invoked more than once per object upload in the S3 input bucket 