removing thread-local cache for branch_setting

@nasthagiri @stvstnfrd