Added logging that displays number of local keys