Change action checking to be done in memory instead going to DB and do and aggregation query.
Merge pull request #144 from cortiz/2.3.x

Change action checking to be done in memory instead going to DB and do a...