Cache, hash, and trash implementation.