Benchamarks and optimizations

I've added a conversion cache that speed up method calls 20x in some cases.
It's uses an ugly hack but it should work for most compilers