EventStoreLayer: Made functions sync instead of async because it is faster, added speed test - it makes over 700K events per second.