performance fix, only parses templates once
Performance tweaks for hamle find tag function