Is there any possibility that the `local_transcripts` contains invalid JSON? Is this value provided by us (trusted) or by the user (untrusted)? If it might be invalid, the `json.loads` call needs to be within a try/except block.