Added try-with-resources blocks to cache
Changed lastPosition to be use bloggers namespace.