add aws memoizing

Reduce the calls to the AWS API - speed up the check.