Specify expiry in milliseconds.
Tweak configuration parameters.
Add configuration to enable and disable the cache in wrap()