Executing delayed inserts with MySQL event scheduler
I think you need to start over in the processing of your data.  I don't think TRIGGERs are an efficient way to achieve the goals.

Here's a thought:

Put information to be INSERTED/DELETED into a couple of tables.  Periodically, batch process the entire tables to do the calculations and do the inserts and deletes.  Batch processing is a lot faster than one-row-at-a-time.

Furthermore, I would set up pairs of such tables.  Various clients would be inserting into one set, while another job is doing the processing described above.  When finished, the processed tables would be cleared, then swapped with the tables being inserted into.

This discusses the details for doing the "inserts", together with associated extra work ('normalization', in the blog).  Deletes would work similarly.