Task debug display- fixed a thread safety issue on debug builds; StaticCache tuning