NEXUS-6277: Optimization added for router too.

As it was suffering from very same problem as plain
reposes.
NEXUS-6277: Deprectated unused methods

Unused after changes in related commits, and
also these methods are not performant.