Added flag to use cache or force sync