Revert "Implement a window ID cache"

This reverts commit 5f1c2afaed3a8f7b3b2fd8481d8aa589a5fde40a.