param tweaks
Use shared variables for parallel SGD