Added wrapper function for Flask-Cache and implemented pickle disable