fixed a performance issue when reading from the DistCache (regression)