Added support for provided cache key.
Added benchmark tests.