Changed to allocation with mlock