Attempt to fix a connection not closed issue when reading data from cache