Adds support for read-only contexts that bypass internal DSO cache
merging pull request 141, patch for DS-1205, fixes #948