Wait for ES cluster to go to GREEN/YELLOW before allowing client interactions

Cache fetched categories in uid based cache when fetching all.