Optimise ITrustRepository.retrieveEntities method