I don't think there's any particular reason to keep those functions in a separate file.
64MB is not that much, but let's not be greedy, esp. because we may run many things in parallel. Also, rlim_cur should never be higher than rlim_max, so let's simplify our code.
Let's make the name better reflect its scope.