ApiBug: GetToken functions are called even if not used