be consistent with how we handle arguments. since writeCache can accept an encrypt option, standardize on an options object rather than individual parameters