Add simple cache functionality.