Change the elements in the task-local map to be actual key-value pairs