improve windows compatibility, try to improve cache