Reduce the number of API requests

Currently, some pages (e.g. teams page) make a lot of API requests. Where possible this should be reduced as much as possible.