Add cache functionality to Capsule