Improve Promotion.applied performance

* An improved version of. https://github.com/spree/spree/commit/6a5f22c054fa3f0e6ef9a6bbc47502191336a170