Recursively compute disk cache sizes

@irace, @mb