Sync: too many call to dal.trimIndexes()
During synchronization, the function dal.trimIndexes() is called for each block after the first M-bma blocks. This function is resource-intensive as it attempts to trim each LevelDB or SQLite DAL.
A more efficient approach would be to trim only occasionally, specifically when a buffer is full. For instance, if the buffer size equals twice the required Bindex size, it should reduce the number of calls by a factor of M-bma.