If the data read lives less than the entire remaining lifetime of the program after it's read ('static,) then you can't have it in lazy_static. lazy_static allows you to have 'static things that are created at runtime.
Oh my problem seems was the intermediate value being dropped when I was chaining things. When i use 2 different variables things seems to be working fine