Speed up action updates by precomputing selected rows.