Cache AMIs on first load
Improved formatting