rlock the cached index when executing it
more idiomatic
tests around caching layer