Also, I loaded your clone, you might also benefit from moving imports into your server module functions, or using the decorator code I wrote for lazy loading, I tested a few times a function that does nothing but print(1) and every time you call the server module it takes 3.5-5.5 seconds to load all of the imports: