Functions to query cache capacity