Narrow down exception; remove unused code
Reduce sleep time to 20 seconds before instance config and move out of repeat cycle
Move templated envs resolving to instance method
Move keyname generation to provider's method