optimize env parser

3 to 5% performance improvement without API change

You can get 10% improvement without converting keys to string and nil values to empty strings