performance updates

custom templating for huge performace boost
result caching to reduce file fetch time by reducing ntfs reads.