Reduce the reliance on the tls api in the WindowDataMap impl, and improve function names