cache credits in socket.user

resolves issue #105