AFAIK, it's not possible to store data using any template functions, nor do I understand why you would want to. In my eyes, putting this sort of functionality in separate modules/views makes more sense as it gives you access to the entire arsenal of PHP functions.