[NFC] Fix performance issue in LiveDebugVariables