Fix for Issue 250: Dynamic scoping caching issue

Dynamic scoping has been failing for oauth 2 modules. This fix disables caching for the configurations that are dynamic while preserving caching for static configurations.