Speed up install checks by caching lists
Only do second brew check if we actually tried to install something
Cache gem list