Attempting to increase memory limit and execution time
Universal function to save data into disk