Fixing time bugs, cache api call