ensuring AI is not too slow on AWS