fixed max entries of cache
add authorization fail counter