Optimize vtk

makes things a bit faster, still can be improved in another branch for template rendering and colorbar rendering.

@dlonie it is very similar to what you looked at before, should be able to review and merge this easily.

@aashish24 please take a look as well.