Refactor. cache dynamodb connection during single request