Make cache optional.