closes #189 refactor of kohana class sanitize created function cache well mainly related to #209