You don't use libpoppler to compute the hash (--> no thread-safety issue). Also the hash is rarely used. So there is no point in keeping the hash in cache.