Set cache time based on actual API limits

This makes the limits explicit, and sets a conservative cache time (50% less
than the theoretical maximum) based on them.