update used_space on upload/download, refresh tokens every 30 min