sped up Core Data and Realm by having larger transactions and removing logging