Currently all values are resolved before any settings are applied to the environment as you can see here. However, since environment variables are never overwritten by settings read from .env, the work involved in resolving those settings is sometimes wasted.