Cache: read/write locking on smaller regions to speed up cache performance