optimize performance in case dataset has protocolused
add test
Merge pull request #396 from dennishendriksen/testing

Optimize performance in case dataset has protocolused