Fixed mutex code for Plaintext to prevent extra waiting when the resource is already cached