Templated memory file