Use size_t for traits cache index.