store only one key to prevent race conditions, see #254