Helper for performing long PHP operations that exceeds max_execution_time limit