minor performance fixes to shard.cc
minor performance fixes to shard.cc

Determinant/weaver,sid17/weaver,Determinant/weaver,Determinant/weaver,sid17/weaver,dubey/weaver,dubey/weaver,Determinant/weaver,dubey/weaver,sid17/weaver,sid17/weaver,dubey/weaver