increase write speed to around 10K per second by caching metadata writes