wrap the dineroIV cache with lua script

the 2nd cache does not work yet, debugging