Added LockIP hash method
Safer saving to prevent corruption