Develop

Hi Ohad, I had some issues with performance using the native_ms handler so I added some caching and code optimization. I also fixed the issue where leases were not being captured. I hope that pull requests are a supported mechanism for submitting changes as I cannot remember how to use the git patch mechanism. :-( It has been a long time. . . .