fix memory allocation problem with sdlog, reduce memory requirements