Fix performance of using UUIDs with JSON