Better DiskCache API and resource protection.