move table encryption to another file