Performance Optimizations in "expire" subcommand