allocate the registry path buffers on the heap
registry paths are case-insensitive