EngineConfig rewritten to be thread safe. Old TODO comment removed

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>