Fixes redundant get call in a few places

partially implements: blueprint refactoring-datastore-options-in-cfg

Change-Id: Ib4257abc44f7166b014c9963995ff0741758e723
Merge "Fixes redundant get call in a few places"