Fixes #5645: caches the AMD configuration
Merge pull request #5723 from mrclay/5645

Fixes #5645: caches the AMD configuration