Simple key store caching mechanism for Javascript with reg expression lookup support