Keep information about all block files in memory

As preparation for a version of #4701 that keeps track of the size of data on disk.
Yeah, I've been thinking about those repetitions as well. But I think there are other improvements to make into how block files are managed, so some of those improvements might well be left for latter pulls.