This induces a memory allocation, but that's not the fault of this code. We need to fix it in the packed preference snapshot.