I don't entirely understand what you are actually doing but it sounds like you need to rethink your method of storing that info and how you store it in memory when you read it from where you permanently store it.
How are you storing this info in permanent storage? Nvault? txt? etc.