Big improvements on the performance

Made some performance improvements:

- Guard all the logs with isDebugEnabled()
- Memoizing all the reflection info that are needed during the rendering  

On my laptop, using a perf test I have written, we went down to 3 ms from around 30ms.