Added logging improvements for microSD

This should improve performance and also decreases resources uses due to less frequent SD I/O, in total it should allow 125 Hz logging without too much CPU time spent.