Changed default count of activity statistics chunks to 1000. Moved some functions in provider.cpp. Added class which encapsulates key size cache and key locking. Removed useless method increment_activity(user, time)