PIM-2016 Improve mass action perf

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Unit test passes: ?
Specs passes: ?
Behat scenario passes: ?
Checkstyle issues: no
ChangeLog updated: no
Documentation PR: ~
Fixes the following jira:
 - PIM-2016 (partially)