Why don't you just prevent factories from transferring (when off loaded) to storages or shops. Maybe even other factories I feel like if it's gonna lag somewhere it will be all the transfers being loaded and more calculations = more lag.
All problems solved as simply as possible.
All problems solved as simply as possible.