Allow specifying custom cache object