How can I avoid saved configuration settings to be exported?
If you don't want to export configuration you should use State API.
From documentation:


  
  It is specific to an individual environment.
  You will never want to deploy it between environments.
  You can reset a system, losing all state. Its configuration remains.