enable memory-checks only on special flag, not general debug