doing a zero/one cache