Possible implementation of async logging - still under experiments