Added hash for processing in templates
Added basic cache functionality