Simplified _cached() decorator