Sentence resource cache implementation.
Merged.