Refactor application configuration and enable caching