Merge pull request #398 from ndawe/master

read speed improvements for read_branches_on_demand